﻿
export class Locale {
    
    private _language: string;
    private _country: string;
    private _variant: string;

    constructor(localeString:string) {
        
        this._language = localeString.split("_")[0];
        this._country = localeString.split("_")[1];
        this._variant = localeString.split("_")[2];
    }

    public getCountry():string {
        return this._country;
    }
    
    public getLanguage(): string {
        return this._language;
    }
    
    public getVariant(): string {
        return this._variant;
    }
}